/* 数据表格样式 */
.data-table-container {
  width: 100%;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
}

.table-wrapper {
  overflow-x: auto;
  max-height: 500px;
  overflow-y: auto;
  min-width: 400px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th {
  background: #f8f9fa;
  color: #202124;
  font-weight: 600;
  padding: 10px 12px;
  text-align: left;
  border-bottom: 2px solid #e8eaed;
  position: sticky;
  top: 0;
  z-index: 1;
}

.data-table th.sortable {
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s;
}

.data-table th.sortable:hover {
  background: #e8eaed;
}

.data-table th.sorted-asc,
.data-table th.sorted-desc {
  background: #e3f2fd;
  color: #1976d2;
}

.sort-indicator {
  margin-left: 4px;
  font-size: 12px;
}

.data-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #f1f3f4;
  color: #202124;
}

.data-table tbody tr:hover {
  background: #f8f9fa;
}

.data-table tbody tr:nth-child(even) {
  background: #fafafa;
}

.data-table tbody tr:nth-child(even):hover {
  background: #f0f0f0;
}

/* 表格底部 */
.table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f8f9fa;
  border-top: 1px solid #e8eaed;
}

.row-count {
  color: #5f6368;
  font-size: 13px;
}

.export-button {
  background: #4285f4;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.export-button:hover {
  background: #3367d6;
}

/* 表格占位符 */
.table-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 120px;
  background: #f8f9fa;
  border: 2px dashed #e8eaed;
  border-radius: 8px;
  color: #5f6368;
}

.placeholder-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.placeholder-text {
  font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .table-wrapper {
    min-width: 280px;
    max-height: 300px;
  }
  
  .data-table {
    font-size: 12px;
  }
  
  .data-table th,
  .data-table td {
    padding: 8px 12px;
  }
  
  .table-footer {
    padding: 8px 12px;
  }
  
  .row-count {
    font-size: 12px;
  }
  
  .export-button {
    padding: 4px 8px;
    font-size: 11px;
  }
}
